package com.developer.datastorage.activity;

import android.view.View;
import android.widget.Button;

import com.developer.datastorage.R;
import com.developer.datastorage.util.Util;

public class MainActivity extends AbstractActivity {

	private Button btnSharedPref;
	private Button btnIntStorage;

	@Override
	public void setLayout() {
		setContentView(R.layout.activity_main);
	}

	@Override
	public void initializeComponents() {
		btnSharedPref = (Button) findViewById(R.id.btn_shared_pref);
		btnIntStorage = (Button) findViewById(R.id.btn_int_storage);
	}

	@Override
	public void registerEvents() {
		btnSharedPref.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Util.startActivity(MainActivity.this, SharedPrefSaveActivity.class);
			}
		});
		btnIntStorage.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Util.startActivity(MainActivity.this, IntStorageSaveActivity.class);
			}
		});
	}

}
